<?php

use App\Http\Controllers\Admin\AirLine\Attachment;
use App\Http\Controllers\Admin\Base\Agent;
use App\Http\Controllers\Admin\Base\Warehouse;
use App\Http\Controllers\Admin\Base\Subject;
use App\Http\Controllers\Admin\Base\Feng;
use App\Http\Controllers\Admin\Base\Currency;
use App\Http\Controllers\Admin\Base\ExchangeRate;
use App\Http\Controllers\Admin\Base\Account;

use App\Http\Controllers\Admin\Client\OpenInfo;
use App\Http\Controllers\Admin\Client\Msg;
use App\Http\Controllers\Admin\Client\Banner;
use App\Http\Controllers\Admin\Client\CommonPrice;

use App\Http\Controllers\Admin\AirLine\Base\Ban;
use App\Http\Controllers\Admin\AirLine\Base\Code;
use App\Http\Controllers\Admin\AirLine\Base\Company;
use App\Http\Controllers\Admin\AirLine\Base\Container;
use App\Http\Controllers\Admin\AirLine\Base\Flight;
use App\Http\Controllers\Admin\AirLine\Base\Type;
use App\Http\Controllers\Admin\AirLine\Base\Route as AirLineRoute;
use App\Http\Controllers\Admin\AirLine\Base\Port;
use App\Http\Controllers\Admin\AirLine\CustomerPreference;
use App\Http\Controllers\Admin\AirLine\DestinationRule;
use App\Http\Controllers\Admin\AirLine\Flight\Transport;
use App\Http\Controllers\Admin\AirLine\ActualBan;
use App\Http\Controllers\Admin\Dispatch\Car;
use App\Http\Controllers\Admin\Dispatch\Driver;
use App\Http\Controllers\Admin\Dispatch\Place;
use App\Http\Controllers\Admin\Dispatch\Material;
use App\Http\Controllers\Admin\Dispatch\Stock;
use App\Http\Controllers\Admin\Dispatch\Purchase;
use App\Http\Controllers\Admin\Dispatch\PreTake;

use App\Http\Controllers\Admin\Dispatch\Unload;
use App\Http\Controllers\Admin\Examine\Config;
use App\Http\Controllers\Admin\Examine\Reimburse;
use App\Http\Controllers\Admin\Examine\Detail;
use App\Http\Controllers\Admin\Examine\Copy;

use App\Http\Controllers\Admin\Finance\AgentInvoice;
use App\Http\Controllers\Admin\Finance\Payable\Airline;
use App\Http\Controllers\Admin\Finance\Payable\Trade;
use App\Http\Controllers\Admin\Finance\Receivable\Generic;
use App\Http\Controllers\Admin\Finance\Receivable\Template1;
use App\Http\Controllers\Admin\Finance\Receivable\Template2;
use App\Http\Controllers\Admin\Service\ProblemType;
use App\Http\Controllers\Admin\Service\AbnormalMode;
use App\Http\Controllers\Admin\Service\DataType;
use App\Http\Controllers\Admin\Service\Database;
use App\Http\Controllers\Admin\Service\Abnormal;
use App\Http\Controllers\Admin\Service\Problem;
use App\Http\Controllers\Admin\Service\Compensate;

use App\Http\Controllers\Admin\Administration\Fixed;
use App\Http\Controllers\Admin\Administration\Office;
use App\Http\Controllers\Admin\Administration\Record;

use App\Http\Controllers\Admin\AirLine\Flight\Cargo;
use App\Http\Controllers\Admin\Administration\Msg as Message;
use App\Http\Controllers\Admin\Base\Email;
use App\Http\Controllers\Admin\Country;
use App\Http\Controllers\Admin\Finance\Invoice;
use App\Http\Controllers\Admin\Finance\SalaryName;
use App\Http\Controllers\Admin\Finance\Salary;
use App\Http\Controllers\Admin\Finance\Compensation;
use App\Http\Controllers\Admin\Finance\TransferGet;
use App\Http\Controllers\Admin\Finance\TransferPay;
use App\Http\Controllers\Admin\Finance\Contract;
use App\Http\Controllers\Admin\Finance\AgentContract;
use App\Http\Controllers\Admin\Finance\ProfitTest;

use App\Http\Controllers\Admin\Customer;
use App\Http\Controllers\Admin\Dispatch\Deposit;
use App\Http\Controllers\Admin\Dispatch\ReturnItem;
use App\Http\Controllers\Admin\Dispatch\Task;
use App\Http\Controllers\Admin\Personnel\Admin;
use App\Http\Controllers\Admin\Personnel\Auth;
use App\Http\Controllers\Admin\Personnel\Role;

use App\Http\Controllers\Admin\Index;
use App\Http\Controllers\Admin\Personnel\Dept;
use App\Http\Controllers\Admin\Personnel\Staff;
use App\Http\Controllers\Admin\Transport\Order;
use Illuminate\Support\Facades\Route;

use App\Http\Controllers\Admin\Customer\Trajectory;
use App\Http\Controllers\Admin\Customer\Node;
use App\Http\Controllers\Admin\Customer\Resource;
use App\Http\Controllers\Admin\Customer\Template;
use App\Http\Controllers\Admin\Depot\Storage;
use App\Http\Controllers\Admin\Customer\OrderRule;
use App\Http\Controllers\Admin\Finance\Data;
use App\Http\Controllers\Admin\Finance\Payable;
use App\Http\Controllers\Admin\Finance\PayBill;
use App\Http\Controllers\Admin\Finance\RecBill;
use App\Http\Controllers\Admin\Finance\Receivable;
use App\Http\Controllers\Admin\Service\Dec;
use App\Http\Controllers\Admin\Transport\TakeOrder;
use App\Http\Controllers\Admin\Customer\BigBag;
use App\Http\Controllers\Admin\Customer\BigTakeOrder;
use App\Http\Controllers\Admin\Customer\SmallBag;
use App\Http\Controllers\Admin\Customer\Price;
use App\Http\Controllers\Admin\Customer\Receivable as ReceivableBig;
use App\Http\Controllers\Admin\Customer\RecBill as RecBillBig;
use App\Http\Controllers\Admin\Customer\Warn;
use App\Http\Controllers\Admin\Dictionary;
use App\Http\Controllers\Admin\Service\CardData;
use App\Http\Controllers\Admin\Transport\OrderBig;
use App\Http\Controllers\Admin\Client\Price as PriceClient;
use App\Http\Controllers\Admin\Personnel\Log;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::any('/test', [\App\Http\Controllers\Admin\Test::class, 'index']);

Route::post('/upload', [Index::class, 'upload']);
//登录相关
Route::post('/login', [Index::class, 'login']);
Route::get('/info', [Index::class, 'info']);

Route::get('/countries', [Country::class, 'index']);
Route::get('/countries/select', [Country::class, 'select']);
Route::get('/airports', [Country::class, 'airports']);
Route::get('/destination', [Country::class, 'destination']);
Route::get('/origin', [Country::class, 'origin']);


//字典
Route::get('/dic/type', [Dictionary::class, 'types']);
Route::get('/dics', [Dictionary::class, 'list']);
Route::post('/dic', [Dictionary::class, 'add']);
Route::put('/dic/{id}', [Dictionary::class, 'update']);
Route::delete('/dic/{id}', [Dictionary::class, 'del']);

//=======人员组织=========
    //账号管理
    Route::get('/admins', [Admin::class, 'index']);
    Route::post('/admin', [Admin::class, 'add']);
    Route::put('/admin/{id}', [Admin::class, 'update']);
    Route::delete('/admin/{id}', [Admin::class, 'delete']);
    Route::put('/admin/block/{id}', [Admin::class, 'block']);
    Route::put('/modify/password', [Admin::class, 'modify_password']);
    Route::put('/admin/status/{id}', [Admin::class, 'status']);
    Route::get('/staff/phone', [Admin::class, 'get_staff_phone']);
    //角色管理
    Route::get('/roles', [Role::class, 'index']);
    Route::post('/role', [Role::class, 'add']);
    Route::put('/role/{id}', [Role::class, 'update']);
    Route::delete('/role/{id}', [Role::class, 'delete']);
    //权限路由
    Route::get('/auth/route', [Auth::class, 'route']);
    Route::get('/auth/route/app', [Auth::class, 'route_app']);
    Route::get('/menu', [Auth::class, 'menu']);
    Route::get('/menu2', [Auth::class, 'menu2']);
    Route::post('/auth', [Auth::class, 'add']);
    Route::put('/auth/{id}', [Auth::class, 'update']);
    Route::delete('/auth/{id}', [Auth::class, 'delete']);
    Route::get('/auth/button', [Auth::class, 'button']);
    Route::get('/auth/button2', [Auth::class, 'button2']);
    Route::post('/auth/import', [Auth::class, 'import']);
    //员工管理
    Route::get('/staff', [Staff::class, 'list']);
    Route::post('/staff', [Staff::class, 'add']);
    Route::put('/staff/{id}', [Staff::class, 'update']);
    Route::delete('/staff/{id}', [Staff::class, 'delete']);
    Route::post('/import', [Staff::class, 'import']);
    Route::post('/staff/export', [Staff::class, 'export']);
    //部门管理
    Route::get('/depts', [Dept::class, 'list']);
    Route::post('/dept', [Dept::class, 'add']);
    Route::put('/dept', [Dept::class, 'update']);
    Route::delete('/dept/{id}', [Dept::class, 'delete']);
    //操作日志
    Route::get('/log', [Log::class, 'list']);
//=======人员组织=========

//=======客户管理=========
    //客户类型
    Route::get('/customer/types', [Customer::class, 'types']);
    Route::post('/customer/type', [Customer::class, 'type_add']);
    Route::put('/customer/type/{id}', [Customer::class, 'type_update']);
    Route::delete('/customer/type/{id}', [Customer::class, 'type_del']);
    //客户列表
    Route::get('/customers', [Customer::class, 'list']);
    Route::post('/customer', [Customer::class, 'add']);
    Route::put('/customer/{id}', [Customer::class, 'update']);
    Route::delete('/customer/{id}', [Customer::class, 'delete']);
    Route::put('/customer/status/set/{id}', [Customer::class, 'set_account']);  //设置账号状态
    Route::put('/customer/charge/set/{id}', [Customer::class, 'set_charge']);  //收费设置
    Route::put('/customer/invoice/set/{id}', [Customer::class, 'set_invoice']);  //开票设置
    Route::get('/customer/platform/select', [Customer::class, 'platform_select']);  //大客户下拉
    Route::get('/customer/big', [Customer::class, 'big_list']);  //大客户列表
    //开户注册审核
    Route::post('/customer/review/pass', [Customer::class, 'pass']);
    Route::post('/customer/review/reject', [Customer::class, 'reject']);

//=======客户管理=========


//=======集运入仓单=========
    //集运入仓单
    Route::get('/transport/orders', [Order::class, 'list']);
    Route::get('/transport/order/{id}', [Order::class, 'detail']);
    Route::post('/transport/preorder', [Order::class, 'preorder']);
    Route::post('/transport/order/confirm', [Order::class, 'confirm']);
    Route::post('/transport/order/export', [Order::class, 'export']);
    Route::delete('/transport/order/id/{id}', [Order::class, 'del']);
    Route::post('/transport/order/import', [Order::class, 'import']);
    Route::post('/transport/order/storage', [Order::class, 'storage']);
    Route::get('/transport/order_storage_info', [Order::class, 'storage_info']);
    Route::post('/transport/split_order', [Order::class, 'split_order']);

    Route::post('/transport/order/declare', [Order::class, 'declare']);
    Route::post('/transport/order/check', [Order::class, 'check']);
    Route::post('/transport/order/pass', [Order::class, 'pass']);

    //大客户入仓单
    Route::get('/transport/big/order', [OrderBig::class, 'list']);
    Route::get('/transport/big/order/detail', [OrderBig::class, 'detail']);
    Route::get('/transport/getBigBagID', [OrderBig::class, 'get_big_bag_ids']);
    Route::post('/transport/size/enter', [OrderBig::class, 'size_enter']);
    Route::post('/transport/big/cancel', [OrderBig::class, 'cancel']);
    //提单列表
    Route::get('/transport/takeorders', [TakeOrder::class, 'list']);
    Route::post('/transport/takeorder/takeoff', [TakeOrder::class, 'takeoff']);
    Route::post('/transport/takeorder/arrive', [TakeOrder::class, 'arrive']);
    Route::post('/transport/takeorder/clearance', [TakeOrder::class, 'clearance']);
    Route::post('/transport/takeorder/sign', [TakeOrder::class, 'sign']);
    Route::post('/transport/takeorder/showsn', [TakeOrder::class, 'showsn']);
    Route::post('/transport/takeorder/hidesn', [TakeOrder::class, 'hidesn']);
    Route::put('/transport/takeorder/setweight/{id}', [TakeOrder::class, 'set_weight']);
    Route::put('/transport/takeorder/perfect/{id}', [TakeOrder::class, 'perfect']);
    Route::get('/transport/takeorder', [TakeOrder::class, 'detail']);
    Route::get('/transport/takeorder/export', [TakeOrder::class, 'export']);
    Route::post('/transport/customer/flight_info', [TakeOrder::class, 'customer_flight_info']);
    Route::post('/transport/takeorder/grass/add', [TakeOrder::class, 'grass_file']);
    Route::post('/transport/takeorder/grass/delete', [TakeOrder::class, 'grass_file_delete']);
    Route::post('/transport/takeorder/final/add', [TakeOrder::class, 'final_file']);
    Route::post('/transport/takeorder/final/delete', [TakeOrder::class, 'final_file_delete']);
    Route::post('/transport/takeorder/aircompany/add', [TakeOrder::class, 'aircompany_file']);
    Route::post('/transport/takeorder/aircompany/delete', [TakeOrder::class, 'aircompany_file_delete']);
//=======集运入仓单=========


//=======基础设置=========
    //代理商管理
    Route::get('/agents', [Agent::class, 'list']);
    Route::post('/agent', [Agent::class, 'add']);
    Route::put('/agent', [Agent::class, 'update']);
    Route::delete('/agent/{id}', [Agent::class, 'delete']);
    Route::put('/agent/bank_account', [Agent::class, 'bank_account']);
    //仓库货站管理
    Route::get('/warehouse', [Warehouse::class, 'list']);
    Route::post('/warehouse', [Warehouse::class, 'add']);
    Route::put('/warehouse/{id}', [Warehouse::class, 'update']);
    Route::delete('/warehouse/{id}', [Warehouse::class, 'delete']);
    //科目管理
    Route::get('/subject', [Subject::class, 'list']);
    Route::post('/subject', [Subject::class, 'add']);
    Route::put('/subject/{id}', [Subject::class, 'update']);
    Route::delete('/subject/{id}', [Subject::class, 'delete']);
    //封关场管理
    Route::get('/feng', [Feng::class, 'list']);
    Route::post('/feng', [Feng::class, 'add']);
    Route::put('/feng/{id}', [Feng::class, 'update']);
    Route::delete('/feng/{id}', [Feng::class, 'delete']);
    //币种管理
    Route::get('/currency', [Currency::class, 'list']);
    Route::post('/currency', [Currency::class, 'add']);
    Route::put('/currency/{id}', [Currency::class, 'update']);
    Route::delete('/currency/{id}', [Currency::class, 'delete']);
    //币种汇率管理
    Route::get('/exchange_rate', [ExchangeRate::class, 'list']);
    Route::post('/exchange_rate', [ExchangeRate::class, 'add']);
    Route::put('/exchange_rate/{id}', [ExchangeRate::class, 'update']);
    Route::delete('/exchange_rate/{id}', [ExchangeRate::class, 'delete']);
    //收款账户管理
    Route::get('/account', [Account::class, 'list']);
    Route::post('/account', [Account::class, 'add']);
    Route::put('/account/{id}', [Account::class, 'update']);
    Route::delete('/account/{id}', [Account::class, 'delete']);
    //邮箱管理
    Route::get('/emails', [Email::class, 'list']);
    Route::post('/email', [Email::class, 'add']);
    Route::put('/email/{id}', [Email::class, 'update']);
    Route::delete('/email/{id}', [Email::class, 'del']);
//=======基础设置=========

//=======客户端信息管理=========
    //客户端公开信息
    Route::get('/open_info', [OpenInfo::class, 'get']);
    Route::post('/open_info', [OpenInfo::class, 'save']);
    //消息通知
    Route::get('/client/msg', [Msg::class, 'list']);
    Route::post('/client/msg', [Msg::class, 'add']);
    Route::put('/client/msg/detail/{id}', [Msg::class, 'detail']);
    //banner设置
    Route::get('/banner', [Banner::class, 'list']);
    Route::post('/banner', [Banner::class, 'add']);
    Route::put('/banner/{id}', [Banner::class, 'update']);
    Route::delete('/banner/{id}', [Banner::class, 'delete']);
//=======客户端信息管理=========

//=======公共价格设置=========
    Route::get('/common/price', [CommonPrice::class, 'get']);
    Route::post('/common/price', [CommonPrice::class, 'save']);

    //报价管理
    Route::get('/price', [PriceClient::class, 'list']);
    Route::post('/price', [PriceClient::class, 'add']);
    Route::put('/price/{id}', [PriceClient::class, 'update']);
    Route::delete('/price/{id}', [PriceClient::class, 'delete']);
    Route::post('/price/export', [PriceClient::class, 'export']);
    Route::post('/price/import', [PriceClient::class, 'import']);
    Route::get('/price/get_price', [PriceClient::class, 'get_price']);
    Route::get('/price/detail', [PriceClient::class, 'detail']);
//=======公共价格设置=========

//=======航线部=========
    //航班运力
    Route::get('/flight/transports', [Transport::class, 'list']);
    Route::get('/flight/transport/{id}', [Transport::class, 'info']);
    Route::post('/flight/transport', [Transport::class, 'add']);
    Route::put('/flight/transport/{id}', [Transport::class, 'update']);
    Route::delete('/flight/transport/{id}', [Transport::class, 'delete']);
    Route::post('/flight/email/send', [Transport::class, 'send_email']);
    Route::get('/flight/email/detail', [Transport::class, 'send_email_detail']);
    Route::get('/flight/print/{id}', [Transport::class, 'print']);
    Route::put('/cargo/complete/{id}', [Transport::class, 'complete']);
    Route::get('/flight/payinfo/{id}', [Transport::class, 'pay_info']);
    Route::post('/flight/rcl_weight', [Transport::class, 'rcl_weight']);
    Route::post('/flight/ban', [Transport::class, 'ban_enter']);

    Route::get('/flight/ban', [\App\Http\Controllers\Admin\AirLine\Flight\Ban::class, 'list']);
    Route::post('/flight/ban', [\App\Http\Controllers\Admin\AirLine\Flight\Ban::class, 'add']);
    Route::put('/flight/ban/{id}', [\App\Http\Controllers\Admin\AirLine\Flight\Ban::class, 'update']);
    Route::delete('/flight/ban/{id}', [\App\Http\Controllers\Admin\AirLine\Flight\Ban::class, 'delete']);
    Route::get('/flight/ban/find', [\App\Http\Controllers\Admin\AirLine\Flight\Ban::class, 'find']);

    //配舱
    Route::get('/cargo/unfinished', [Cargo::class, 'unfinished']);
    Route::post('/cargo/add_pre', [Cargo::class, 'add_pre']);
    Route::post('/cargo/add', [Cargo::class, 'add']);
    Route::get('/cargo/nofill', [Cargo::class, 'nofill']);
    Route::put('/cargo/nofill/cancel/{id}', [Cargo::class, 'nofill_cancel']);
    Route::put('/cargo/fill/cancel/{id}', [Cargo::class, 'fill_cancel']);
    Route::get('/cargo/fill', [Cargo::class, 'fill']);
    Route::get('/cargo/takeorders', [Cargo::class, 'take_orders']);
    Route::put('/cargo/take/order/{id}', [Cargo::class, 'update']);
    Route::put('/cargo/take/order/cancel/{id}', [Cargo::class, 'cancel']);
    Route::get('/cargo/stid/{id}', [Cargo::class, 'stid']);
    Route::post('/cargo/auto', [Cargo::class, 'auto_cargo']);
    Route::post('/cargo/confirm', [Cargo::class, 'confirm']);
    Route::post('/cargo/import', [Cargo::class, 'import_cargo']);

    //客户排货偏好
    Route::get('/flight/customer/preferences', [CustomerPreference::class, 'list']);
    Route::post('/flight/customer/preference', [CustomerPreference::class, 'add']);
    Route::put('/flight/customer/preference/{id}', [CustomerPreference::class, 'update']);
    Route::delete('/flight/customer/preference/{id}', [CustomerPreference::class, 'delete']);

    //目的地排货规则
    Route::get('/flight/destination/rules', [DestinationRule::class, 'list']);
    Route::post('/flight/destination/rule', [DestinationRule::class, 'add']);
    Route::put('/flight/destination/rule/{id}', [DestinationRule::class, 'update']);
    Route::delete('/flight/destination/rule/{id}', [DestinationRule::class, 'delete']);

    //附件管理
    Route::get('/flight/attachments', [Attachment::class, 'list']);
    Route::post('/flight/attachment', [Attachment::class, 'add']);
    Route::put('/flight/attachment/{id}', [Attachment::class, 'update']);
    Route::delete('/flight/attachment/{id}', [Attachment::class, 'delete']);

    //装板统计
    Route::get('/actual/ban', [ActualBan::class, 'list']);
    Route::get('/actual/order', [ActualBan::class, 'order_list']);
    Route::get('/actual/pivot', [ActualBan::class, 'pivot']);
    Route::get('/actual/flight', [ActualBan::class, 'flight']);

    //版型管理
    Route::get('/ban', [Ban::class, 'list']);
    Route::post('/ban', [Ban::class, 'add']);
    Route::put('/ban/{id}', [Ban::class, 'update']);
    Route::delete('/ban/{id}', [Ban::class, 'delete']);
    Route::get('/ban/select', [Ban::class, 'select']);
    //航司管理
    Route::get('/company', [Company::class, 'list']);
    Route::post('/company', [Company::class, 'add']);
    Route::put('/company/{id}', [Company::class, 'update']);
    Route::delete('/company/{id}', [Company::class, 'delete']);
    Route::get('/company/select', [Company::class, 'select']);
    //CODE管理
    Route::get('/code', [Code::class, 'list']);
    Route::post('/code', [Code::class, 'add']);
    Route::put('/code/{id}', [Code::class, 'update']);
    Route::delete('/code/{id}', [Code::class, 'delete']);
    Route::get('/code/vehicle/select', [Code::class, 'select']);
    //集装器管理
    Route::get('/container', [Container::class, 'list']);
    Route::post('/container', [Container::class, 'add']);
    Route::put('/container/{id}', [Container::class, 'update']);
    Route::delete('/container/{id}', [Container::class, 'delete']);
    Route::get('/container/select', [Container::class, 'select']);
    Route::post('/container/export', [Container::class, 'export']);
    Route::post('/container/import', [Container::class, 'import']);
    //航班管理
    Route::get('/flight', [Flight::class, 'list']);
    Route::post('/flight', [Flight::class, 'add']);
    Route::put('/flight/{id}', [Flight::class, 'update']);
    Route::delete('/flight/{id}', [Flight::class, 'delete']);
    //航线分类管理
    Route::get('/type', [Type::class, 'list']);
    Route::post('/type', [Type::class, 'add']);
    Route::put('/type/{id}', [Type::class, 'update']);
    Route::delete('/type/{id}', [Type::class, 'delete']);
    //航线管理
    Route::get('/route', [AirLineRoute::class, 'list']);
    Route::post('/route', [AirLineRoute::class, 'add']);
    Route::put('/route/{id}', [AirLineRoute::class, 'update']);
    Route::delete('/route/{id}', [AirLineRoute::class, 'delete']);
    Route::get('/route/history', [AirLineRoute::class, 'history']);
    //机场港口管理
    Route::get('/port', [Port::class, 'list']);
    Route::post('/port', [Port::class, 'add']);
    Route::put('/port/{id}', [Port::class, 'update']);
    Route::delete('/port/{id}', [Port::class, 'delete']);
//=======航线部=========

//=======调度=========
    //预约取件
    Route::get('/pre/take', [PreTake::class, 'list']);
    Route::post('/pre/take/arrange', [PreTake::class, 'arrange']);
    Route::get('/pre/take/detail', [PreTake::class, 'detail']);

    //运输任务配载
    Route::get('/dispatch/tasks', [Task::class, 'list']);
    Route::post('/dispatch/task', [Task::class, 'add']);
    Route::put('/dispatch/task/{id}', [Task::class, 'update']);
    Route::delete('/dispatch/task/{id}', [Task::class, 'delete']);
    Route::get('/dispatch/task/detail/{id}', [Task::class, 'detail']);
    Route::get('/dispatch/task/loads/{id}', [Task::class, 'load_list']);
    Route::put('/dispatch/task/load/{id}', [Task::class, 'load_add']);
    Route::put('/dispatch/task/load/modify/{id}', [Task::class, 'load_update']);
    Route::put('/dispatch/task/remove/{id}', [Task::class, 'remove']);
    Route::get('/dispatch/task/loadable', [Task::class, 'loadable']);
    Route::get('/dispatch/cost/{id}', [Task::class, 'costs']);
    Route::put('/dispatch/cost/{id}', [Task::class, 'update_cost']);
    Route::get('/dispatch/transport/record', [Task::class, 'transport_record']);
    Route::post('/dispatch/task/export', [Task::class, 'export']);
    Route::post('/dispatch/task/load/export', [Task::class, 'load_export']);
    Route::get('/dispatch/declare_list', [Task::class, 'declare_list']);
    Route::post('/dispatch/task/load/import', [Task::class, 'import']);

    Route::post('/dispatch/task/out', [Task::class, 'out']);
    Route::post('/dispatch/task/declare', [Task::class, 'declare']);
    Route::post('/dispatch/task/check', [Task::class, 'check']);
    Route::post('/dispatch/task/pass', [Task::class, 'pass']);
    Route::post('/dispatch/task/exception', [Task::class, 'exception']);

    //未运输入仓单
    Route::get('/dispatch/unloading', [Task::class, 'unloading']);
    Route::get('/dispatch/unloading2', [Task::class, 'unloading']);
    Route::post('/dispatch/loading', [Task::class, 'loading']);
    //车辆管理
    Route::get('/car', [Car::class, 'list']);
    Route::post('/car', [Car::class, 'add']);
    Route::put('/car/{id}', [Car::class, 'update']);
    Route::delete('/car/{id}', [Car::class, 'delete']);
    Route::get('/car/select', [Car::class, 'select']);
    Route::post('/car/import', [Car::class, 'import']);
    Route::post('/car/export', [Car::class, 'export']);
    //司机管理
    Route::get('/driver', [Driver::class, 'list']);
    Route::post('/driver', [Driver::class, 'add']);
    Route::put('/driver/{id}', [Driver::class, 'update']);
    Route::delete('/driver/{id}', [Driver::class, 'delete']);
    Route::get('/driver/select', [Driver::class, 'select']);
    //库位管理
    Route::get('/place', [Place::class, 'list']);
    Route::post('/place', [Place::class, 'add']);
    Route::put('/place/{id}', [Place::class, 'update']);
    Route::delete('/place/{id}', [Place::class, 'delete']);
    Route::get('/place/select', [Place::class, 'select']);
    //物料管理
    Route::get('/material', [Material::class, 'list']);
    Route::post('/material', [Material::class, 'add']);
    Route::put('/material/{id}', [Material::class, 'update']);
    Route::delete('/material/{id}', [Material::class, 'delete']);
    Route::post('/material/import', [Material::class, 'import']);
    Route::post('/material/export', [Material::class, 'export']);
    //退货管理
    Route::get('/returnitems', [ReturnItem::class, 'list']);
    Route::post('/returnitem', [ReturnItem::class, 'add']);
    Route::post('/returnitem/storage', [ReturnItem::class, 'storage']);
    Route::post('/returnitem/out', [ReturnItem::class, 'out']);
    //留仓管理
    Route::get('/deposits', [Deposit::class, 'list']);
    Route::post('/deposit', [Deposit::class, 'add']);
    Route::post('/deposit/cancel', [Deposit::class, 'cancel']);
    //库存管理
    Route::get('/stock', [Stock::class, 'list']);
    Route::put('/stock/{id}', [Stock::class, 'stock']);
    Route::post('/stock/out', [Stock::class, 'out']);
    Route::get('/stock/record', [Stock::class, 'record']);
    Route::post('/stock/import', [Stock::class, 'import']);
    Route::post('/stock/export', [Stock::class, 'export']);
    //采购审批
    Route::get('/purchase/examine', [Purchase::class, 'examine_list']);
    Route::put('/purchase/examine/{id}', [Purchase::class, 'examine']);
    Route::put('/purchase/examine/detail/{id}', [Purchase::class, 'examine_detail']);
    //采购单管理
    Route::get('/purchase/order', [Purchase::class, 'purchase_list']);
    Route::post('/purchase', [Purchase::class, 'add']);
    Route::put('/purchase/order/file/{id}', [Purchase::class, 'file']);
    Route::put('/purchase/order/cancel/{id}', [Purchase::class, 'cancel']);
    Route::put('/purchase/order/confirm/{id}', [Purchase::class, 'confirm']);
    Route::put('/purchase/order/detail/{id}', [Purchase::class, 'detail']);
    Route::put('/purchase/order/{id}', [Purchase::class, 'update']);
    Route::get('/purchase/order/examine_info', [Purchase::class, 'examine_info']);
    Route::put('/purchase/order/storage/{id}', [Purchase::class, 'storage']);
    Route::post('/purchase/import', [Purchase::class, 'import']);

    //卸货地管理
    Route::get('/unload', [Unload::class, 'list']);
    Route::post('/unload', [Unload::class, 'add']);
    Route::put('/unload/{id}', [Unload::class, 'update']);
    Route::delete('/unload/{id}', [Unload::class, 'delete']);
//=======调度=========

//====仓库===========
    //平台货入库
    Route::get('/warehouse/storage/check', [\App\Http\Controllers\Admin\Warehouse\Storage::class, 'check']);
    Route::post('/warehouse/storage/check/batch', [\App\Http\Controllers\Admin\Warehouse\Storage::class, 'check_batch']);
    Route::post('/warehouse/storage/add', [\App\Http\Controllers\Admin\Warehouse\Storage::class, 'add']);

//=======大客户=========
    //大客户大包
    Route::get('/big', [BigBag::class, 'list']);
    Route::put('/big/remarks/{id}', [BigBag::class, 'remarks']);
    Route::post('/big/mark_error', [BigBag::class, 'mark_error']);
    Route::post('/big/mark_lack', [BigBag::class, 'mark_lack']);
    Route::post('/big/mark_normal', [BigBag::class, 'mark_normal']);
    Route::post('/big/node/system', [BigBag::class, 'update_system_node']);
    Route::post('/big/node/platform', [BigBag::class, 'update_platform_node']);
    Route::get('/big/detail', [BigBag::class, 'detail']);
    Route::get('/big/data', [BigBag::class, 'data']);
    Route::get('/big/record/list', [BigBag::class, 'get_node_list']);
    Route::post('/big/export', [BigBag::class, 'export']);
    Route::get('/big/unupdate', [BigBag::class, 'unupdate_bigbag']);
    Route::post('/big/manifest_export', [BigBag::class, 'manifest']);
    Route::post('/big/manifest_export2', [BigBag::class, 'manifest2']);

    //大客户提单列表
    Route::get('/big/take_order/list', [BigTakeOrder::class, 'list']);
    Route::get('/big/take_order/import_info', [BigTakeOrder::class, 'import_info']);
    Route::get('/big/take_order/import_list', [BigTakeOrder::class, 'import_list']);
    Route::post('/big/take_order/import', [BigTakeOrder::class, 'import']);
    Route::get('/big/take_order/detail', [BigTakeOrder::class, 'detail']);
    Route::post('/big/take_order/export', [BigTakeOrder::class, 'export']);
    Route::post('/big/take_order/add', [BigTakeOrder::class, 'add']);
    Route::post('/big/take_order/update', [BigTakeOrder::class, 'update']);
    Route::get('/take_order/node/status', [BigTakeOrder::class, 'take_order_status']);
    Route::post('/take_order/node/system', [BigTakeOrder::class, 'update_system_node']);
    Route::get('/take_order/node/back', [BigTakeOrder::class, 'back']);
    Route::post('/take_order/node/platform', [BigTakeOrder::class, 'update_platform_node']);
    Route::get('/big/take_order/flight', [BigTakeOrder::class, 'flight']);
    Route::post('/take_order/callback', [BigTakeOrder::class, 'callback']);
    Route::get('/take_order/unupdate', [BigTakeOrder::class, 'unupdate_take_order']);
    Route::get('/take_order/unbind', [BigTakeOrder::class, 'unbind']);
    Route::post('/take_order/unbind_batch', [BigTakeOrder::class, 'unbind_batch']);
    Route::post('/take_order/manifest_export', [BigTakeOrder::class, 'manifest']);
    Route::post('/take_order/manifest_export2', [BigTakeOrder::class, 'manifest2']);
    Route::get('/take_order/flight/select', [BigTakeOrder::class, 'get_flight_select']);


    //大客户小包列表
    Route::get('/big/small/list', [SmallBag::class, 'list']);
    Route::get('/big/small/detail', [SmallBag::class, 'detail']);
    Route::get('/big/small/data', [SmallBag::class, 'data']);
    Route::post('/big/small/export', [SmallBag::class, 'export']);
    Route::post('/small/node/system', [SmallBag::class, 'update_system_node']);
    Route::post('/small/node/platform', [SmallBag::class, 'update_platform_node']);
    Route::post('/small/exception', [SmallBag::class, 'common_exception_callback']);
    Route::get('/exception/select', [SmallBag::class, 'exception_code']);
    Route::get('/small/unupdate', [SmallBag::class, 'unupdate_smallbag']);
    Route::get('/small/record/list', [SmallBag::class, 'get_node_list']);

    //大客户报价
    Route::get('/customer/price', [Price::class, 'list']);
    Route::post('/customer/price', [Price::class, 'add']);
    Route::put('/customer/price/{id}', [Price::class, 'update']);
    Route::delete('/customer/price/{id}', [Price::class, 'delete']);
    //大客户应收清单
    Route::get('/customer/receivable', [ReceivableBig::class, 'list']);
    Route::put('/customer/receivable/{id}', [ReceivableBig::class, 'update']);
    Route::post('/customer/receivable/repair', [ReceivableBig::class, 'repair']);
    Route::post('/customer/receivable/bill_create', [ReceivableBig::class, 'bill_create']);
    Route::post('/customer/receivable/bill_confirm', [ReceivableBig::class, 'confirm_bill']);
    //大客户账单
    Route::get('/customer/bill', [RecBillBig::class, 'list']);
    Route::get('/customer/bill/detail', [RecBillBig::class, 'order_list']);
    Route::get('/customer/bill/take_order/detail', [RecBillBig::class, 'take_order_list']);
    Route::get('/customer/bill/export', [RecBillBig::class, 'order_export']);
    Route::get('/customer/bill/take_order/export', [RecBillBig::class, 'take_order_export']);
//    Route::get('/customer/bill/order_list', [RecBillBig::class, 'order_list']);
    //节点管理
    Route::get('/node', [Node::class, 'list']);
    Route::post('/node', [Node::class, 'add']);
    Route::put('/node/{id}', [Node::class, 'update']);
    Route::delete('/node/{id}', [Node::class, 'delete']);
    //节点记录
    Route::get('/node/record', [Customer\NodeRecord::class, 'list']);
    //api接口
    Route::get('/big/api', [Customer\Api::class, 'list']);
    //轨迹监控
    Route::get('/trajectory', [Trajectory::class, 'list']);
    Route::get('/trajectory/node', [Trajectory::class, 'get']);
    Route::post('/trajectory', [Trajectory::class, 'add']);
    Route::put('/trajectory/{id}', [Trajectory::class, 'update']);
    Route::delete('/trajectory/{id}', [Trajectory::class, 'delete']);

    //报警记录
    Route::get('/warn', [Warn::class, 'list']);
    Route::post('/warn/repair', [Warn::class, 'repair']);
    //资源代码
    Route::get('/resource', [Resource::class, 'list']);
    Route::post('/resource', [Resource::class, 'add']);
    Route::put('/resource/{id}', [Resource::class, 'update']);
    Route::delete('/resource/{id}', [Resource::class, 'delete']);
    //大包数据模板
    Route::get('/template', [Template::class, 'list']);
    Route::post('/template', [Template::class, 'add']);
    Route::put('/template/{id}', [Template::class, 'update']);
    Route::delete('/template/{id}', [Template::class, 'delete']);
    //入仓号规则管理
    Route::get('/rule', [OrderRule::class, 'list']);
    Route::put('/rule/{id}', [OrderRule::class, 'update']);
//=======大客户=========

//=======业务审批=========
    //审批流程设置
    Route::get('/examine/config', [Config::class, 'list']);
    Route::put('/examine/config/{id}', [Config::class, 'update']);
    Route::get('/examine/process', [Config::class, 'examine_process']);
    //我提交的报销申请
    Route::get('/reimburse', [Reimburse::class, 'list']);
    Route::post('/reimburse', [Reimburse::class, 'add']);
    Route::put('/reimburse/{id}', [Reimburse::class, 'update']);
    Route::put('/reimburse/urge/{id}', [Reimburse::class, 'urge']);
    Route::put('/reimburse/cancel/{id}', [Reimburse::class, 'cancel']);
    Route::put('/reimburse/detail/{id}', [Reimburse::class, 'detail']);
    //我审批的业务
    Route::get('/examine', [Detail::class, 'list']);
    Route::put('/examine/detail/{id}', [Detail::class, 'detail']);
    Route::put('/examine/pass/{id}', [Detail::class, 'pass']);
    Route::put('/examine/refuse/{id}', [Detail::class, 'refuse']);
    //抄送我的业务
    Route::get('/copy', [Copy::class, 'list']);
    Route::put('/copy/detail/{id}', [Copy::class, 'detail']);
//=======业务审批=========

//=======客服=========
    //异常列表
    Route::get('/abnormal', [Abnormal::class, 'list']);
    Route::post('/abnormal/config', [Abnormal::class, 'config']);
    Route::put('/abnormal/start/{id}', [Abnormal::class, 'start']);
    Route::put('/abnormal/handle/{id}', [Abnormal::class, 'handle']);
    Route::put('/abnormal/problem/{id}', [Abnormal::class, 'problem']);
    Route::get('/abnormal/detail', [Abnormal::class, 'detail']);
    Route::post('/abnormal/export', [Abnormal::class, 'export']);
    Route::post('/abnormal', [Abnormal::class, 'add']);
    //问题件列表
    Route::get('/problem', [Problem::class, 'list']);
    Route::post('/problem', [Problem::class, 'add']);
    Route::put('/problem/programme/{id}', [Problem::class, 'programme']);
    Route::put('/problem/handle/{id}', [Problem::class, 'handle']);
    Route::put('/problem/compensate/{id}', [Problem::class, 'compensate']);
    Route::get('/problem/detail', [Problem::class, 'detail']);
    Route::get('/problem/check', [Problem::class, 'check']);
    Route::post('/problem/export', [Problem::class, 'export']);
    //赔偿列表
    Route::get('/compensate', [Compensate::class, 'list']);
    Route::put('/compensate/confirm/{id}', [Compensate::class, 'confirm']);
    Route::put('/compensate/pass/{id}', [Compensate::class, 'pass']);
    Route::put('/compensate/refuse/{id}', [Compensate::class, 'refuse']);
    Route::put('/compensate/detail/{id}', [Compensate::class, 'detail']);
    Route::put('/compensation/{id}', [Compensation::class, 'add']);
    Route::post('/compensate/export', [Compensate::class, 'export']);
    Route::post('/compensate/info', [Compensate::class, 'info']);

    //问题件类型管理
    Route::get('/problem/type', [ProblemType::class, 'list']);
    Route::post('/problem/type', [ProblemType::class, 'add']);
    Route::put('/problem/type/{id}', [ProblemType::class, 'update']);
    Route::delete('/problem/type/{id}', [ProblemType::class, 'delete']);
    Route::get('/problem/select', [ProblemType::class, 'select']);
    //问题件出路方式
    Route::get('/abnormal/mode', [AbnormalMode::class, 'list']);
    Route::post('/abnormal/mode', [AbnormalMode::class, 'add']);
    Route::put('/abnormal/mode/{id}', [AbnormalMode::class, 'update']);
    Route::delete('/abnormal/mode/{id}', [AbnormalMode::class, 'delete']);
    //资料类型管理
    Route::get('/data/type', [DataType::class, 'list']);
    Route::post('/data/type', [DataType::class, 'add']);
    Route::put('/data/type/{id}', [DataType::class, 'update']);
    Route::delete('/data/type/{id}', [DataType::class, 'delete']);
    //资料库
    Route::get('/database', [Database::class, 'list']);
    Route::post('/database', [Database::class, 'add']);
    Route::put('/database/{id}', [Database::class, 'update']);
    Route::delete('/database/{id}', [Database::class, 'delete']);
    //纸板资料
    Route::get('/card/data', [CardData::class, 'list']);
    Route::get('/card/data/detail', [CardData::class, 'detail']);
    //报关清单
    Route::get('/dec/list', [Dec::class, 'list']);
//=======客服=========

//=======行政管理=========
    //消息中心
    Route::get('/msg', [Message::class, 'list']);
    Route::put('/msg/read/{id}', [Message::class, 'read']);
    Route::put('/msg/cancel/{id}', [Message::class, 'cancel']);
    //固定资产管理
    Route::get('/fixed', [Fixed::class, 'list']);
    Route::post('/fixed', [Fixed::class, 'add']);
    Route::post('/fixed/export', [Fixed::class, 'export']);
    Route::put('/fixed/{id}', [Fixed::class, 'update']);
    Route::delete('/fixed/{id}', [Fixed::class, 'delete']);
    Route::post('/fixed/delete_batch', [Fixed::class, 'delete_batch']);
    Route::post('/fixed/import', [Fixed::class, 'import']);
    //办公物品管理
    Route::get('/office', [Office::class, 'list']);
    Route::post('/office', [Office::class, 'add']);
    Route::post('/office/export', [Office::class, 'export']);
    Route::post('/office/import', [Office::class, 'import']);

    Route::put('/office/{id}', [Office::class, 'update']);
    Route::put('/office/enter/{id}', [Record::class, 'enter']);
    Route::put('/office/out/{id}', [Record::class, 'out']);
    Route::put('/office/record/{id}', [Record::class, 'record']);
    Route::post('/office/record/import', [Record::class, 'import']);
    Route::delete('/office/{id}', [Office::class, 'delete']);
    Route::post('/office/delete_batch', [Office::class, 'delete_batch']);
    Route::post('/office/record_in/export', [Record::class, 'export_in']);
    Route::post('/office/record_out/export', [Record::class, 'export_out']);
//=======行政管理=========

//=======财务=========
    //应收账款管理
    Route::get('/receivable/generic', [Generic::class, 'list']);
    Route::post('/receivable/generic', [Generic::class, 'add']);
    Route::put('/receivable/generic/{id}', [Generic::class, 'update']);
    Route::delete('/receivable/generic/{id}', [Generic::class, 'delete']);
    Route::post('/receivable/generic/export', [Generic::class, 'export']);
    Route::post('/receivable/generic/import', [Generic::class, 'import']);
    Route::get('/receivable/generic/detail2', [Generic::class, 'detail2']);
    Route::post('/receivable/generic/bill_create', [Generic::class, 'create_bill']);

    Route::get('/receivable/generic/detail', [Generic::class, 'detail']);
    Route::post('/receivable/generic/template', [Generic::class, 'template_import']);
    Route::post('/receivable/generic/detail', [Generic::class, 'detail_add']);
    Route::put('/receivable/generic/detail/{id}', [Generic::class, 'detail_update']);
    Route::delete('/receivable/generic/detail/{id}', [Generic::class, 'detail_delete']);

    //应收模板
    Route::get('/receivable/template', [Receivable\Template::class, 'list']);
    Route::post('/receivable/template', [Receivable\Template::class, 'add']);
    Route::put('/receivable/template/{id}', [Receivable\Template::class, 'update']);
    Route::delete('/receivable/template/{id}', [Receivable\Template::class, 'delete']);

    //应收账单
    Route::get('/receivable/bill', [Receivable\Bill::class, 'list']);
    Route::delete('/receivable/bill/{id}', [Receivable\Bill::class, 'delete']);
    Route::put('/receivable/examine/{id}', [Receivable\Bill::class, 'examine']);
    Route::get('/receivable/bill/detail', [Receivable\Bill::class, 'detail']);
    Route::put('/receivable/bill/send/{id}', [Receivable\Bill::class, 'send']);
    Route::put('/receivable/bill/confirm/{id}', [Receivable\Bill::class, 'confirm']);
    Route::post('/receivable/bill/invoice', [Receivable\Bill::class, 'invoice']);

    //应收账款模板1
    Route::get('/receivable/template1', [Template1::class, 'list']);
    Route::post('/receivable/template1', [Template1::class, 'add']);
    Route::put('/receivable/template1/{id}', [Template1::class, 'update']);
    Route::delete('/receivable/template1/{id}', [Template1::class, 'delete']);
    Route::post('/receivable/template1/export', [Template1::class, 'export']);

    //应收账款模板2
    Route::get('/receivable/template2', [Template2::class, 'list']);
    Route::post('/receivable/template2', [Template2::class, 'add']);
    Route::put('/receivable/template2/{id}', [Template2::class, 'update']);
    Route::delete('/receivable/template2/{id}', [Template2::class, 'delete']);
    Route::post('/receivable/template2/export', [Template2::class, 'export']);

    //应付提单核对
    Route::get('/payables', [Payable::class, 'take_orders']);
    Route::put('/payable/verify/{id}', [Payable::class, 'verify']);
    Route::delete('/payable/verify/{id}', [Payable::class, 'cancel_verify']);
    Route::post('/payable/set/weight/{id}', [Payable::class, 'set_weight']);
    Route::post('/payable/confirm/weight/{id}', [Payable::class, 'confirm']);
    Route::post('/payable/add', [Payable::class, 'add_pay']);
    Route::get('/payable/info/{id}', [Payable::class, 'pay_info']);
    Route::delete('/payable/pay/{id}', [Payable::class, 'del_pay']);
    Route::put('/payable/pay/confirm/{id}', [Payable::class, 'confirm_pay']);
    Route::delete('/payable/pay/confirm/{id}', [Payable::class, 'cancel_pay']);
    Route::post('/payable/create/bill', [Payable::class, 'create_bill']);
    Route::post('/payable/confirm/bill', [Payable::class, 'confirm_bill']);

    //应付账单
    Route::get('/paybills', [PayBill::class, 'list']);
    Route::get('/paybill/detail/{id}', [PayBill::class, 'detail']);
    Route::put('/paybill/submit/{id}', [PayBill::class, 'submit']);
    Route::put('/paybill/review/pass/{id}', [PayBill::class, 'pass']);
    Route::put('/paybill/review/reject/{id}', [PayBill::class, 'reject']);
    Route::post('/paybill/ticket', [PayBill::class, 'ticket']);
    Route::get('/paybill/modify/{id}', [PayBill::class, 'detail2']);
    Route::put('/paybill/modify/{id}', [PayBill::class, 'update']);
    Route::put('/paybill/remove', [PayBill::class, 'remove']);
    Route::put('/paybill/join', [PayBill::class, 'join']);
    Route::put('/paybill/set/weight', [PayBill::class, 'set_weight']);
    Route::post('/paybill/export', [PayBill::class, 'export']);

    //发票管理
    Route::get('/invoice', [Invoice::class, 'list']);
    Route::post('/invoice', [Invoice::class, 'add']);
    Route::put('/invoice/{id}', [Invoice::class, 'update']);
    Route::delete('/invoice/{id}', [Invoice::class, 'delete']);
    //代理发票管理
    Route::get('/agent/invoice', [AgentInvoice::class, 'list']);
    Route::post('/agent/invoice', [AgentInvoice::class, 'add']);

    //薪资名称管理
    Route::get('/payable/invoice', [\App\Http\Controllers\Admin\Finance\PayInvoice::class, 'list']);
    Route::post('/payable/invoice', [\App\Http\Controllers\Admin\Finance\PayInvoice::class, 'add']);
    Route::put('/payable/invoice/{id}', [\App\Http\Controllers\Admin\Finance\PayInvoice::class, 'update']);
    Route::delete('/payable/invoice/{id}', [\App\Http\Controllers\Admin\Finance\PayInvoice::class, 'delete']);

    //薪资名称管理
    Route::get('/salary/name', [SalaryName::class, 'list']);
    Route::post('/salary/name', [SalaryName::class, 'add']);
    Route::put('/salary/name/{id}', [SalaryName::class, 'update']);
    Route::delete('/salary/name/{id}', [SalaryName::class, 'delete']);
    //薪资管理
    Route::get('/salary', [Salary::class, 'list']);
    Route::post('/salary/export', [Salary::class, 'export']);
    Route::post('/salary/import', [Salary::class, 'import']);
    Route::post('/salary/day', [Salary::class, 'month_day']);
    Route::put('/salary/dec/{id}', [Salary::class, 'dec']);
    Route::put('/salary/subsidy/{id}', [Salary::class, 'subsidy']);
    Route::put('/salary/total/{id}', [Salary::class, 'total']);
    Route::get('/salary/detail', [Salary::class, 'detail']);
    Route::put('/salary/detail/{id}', [Salary::class, 'edit']);
    Route::delete('/salary/detail/{id}', [Salary::class, 'delete']);
    Route::put('/salary/remarks/{id}', [Salary::class, 'remarks']);
    Route::put('/salary/actual_day/{id}', [Salary::class, 'actual_day']);
    //转账收款管理
    Route::get('/transferGet', [TransferGet::class, 'list']);
    Route::post('/transferGet', [TransferGet::class, 'add']);
    //转账付款管理
    Route::get('/transferPay', [TransferPay::class, 'list']);
    Route::post('/transferPay', [TransferPay::class, 'add']);
    Route::get('/transferPay/agent_account', [TransferPay::class, 'get_account']);
    //赔付管理
    Route::get('/compensation', [Compensation::class, 'list']);
    Route::post('/compensation/admin_add', [Compensation::class, 'admin_add']);
    Route::put('/compensation/edit/{id}', [Compensation::class, 'update']);
    Route::put('/compensation/confirm/{id}', [Compensation::class, 'confirm']);
    Route::put('/compensation/detail/{id}', [Compensation::class, 'detail']);
    //合同管理
    Route::get('/contract', [Contract::class, 'list']);
    //代理合同管理
    Route::get('/agent/contract', [AgentContract::class, 'list']);
    Route::post('/agent/contract', [AgentContract::class, 'add']);
    Route::put('/agent/contract/{id}', [AgentContract::class, 'update']);
    Route::delete('/agent/contract/{id}', [AgentContract::class, 'delete']);
    //报价利润测试
    Route::post('/profit/test', [ProfitTest::class, 'total']);

    //应付 航司运费管理
    Route::get('/payable/airline', [Airline::class, 'list']);
    Route::post('/payable/airline', [Airline::class, 'add']);
    Route::put('/payable/airline/{id}', [Airline::class, 'update']);
    Route::delete('/payable/airline/{id}', [Airline::class, 'delete']);
    Route::get('/payable/airline/{id}', [Airline::class, 'detail']);
    Route::put('/payable/airline/pay/{id}', [Airline::class, 'setPaid']);

    //应付 一般贸易管理
    Route::get('/payable/trade', [Trade::class, 'list']);
    Route::post('/payable/trade', [Trade::class, 'add']);
    Route::put('/payable/trade/{id}', [Trade::class, 'update']);
    Route::delete('/payable/trade/{id}', [Trade::class, 'delete']);
    Route::get('/payable/trade/{id}', [Trade::class, 'detail']);
    Route::put('/payable/trade/pay/{id}', [Trade::class, 'setPaid']);

    //应付 单独报关管理
    Route::get('/payable/declaration', [\App\Http\Controllers\Admin\Finance\Payable\Declaration::class, 'list']);
    Route::post('/payable/declaration', [\App\Http\Controllers\Admin\Finance\Payable\Declaration::class, 'add']);
    Route::put('/payable/declaration/{id}', [\App\Http\Controllers\Admin\Finance\Payable\Declaration::class, 'update']);
    Route::delete('/payable/declaration/{id}', [\App\Http\Controllers\Admin\Finance\Payable\Declaration::class, 'delete']);
    Route::get('/payable/declaration/{id}', [\App\Http\Controllers\Admin\Finance\Payable\Declaration::class, 'detail']);
    Route::put('/payable/declaration/pay/{id}', [\App\Http\Controllers\Admin\Finance\Payable\Declaration::class, 'setPaid']);

    //应付 清关管理
    Route::get('/payable/clearance', [\App\Http\Controllers\Admin\Finance\Payable\Clearance::class, 'list']);
    Route::post('/payable/clearance', [\App\Http\Controllers\Admin\Finance\Payable\Clearance::class, 'add']);
    Route::put('/payable/clearance/{id}', [\App\Http\Controllers\Admin\Finance\Payable\Clearance::class, 'update']);
    Route::delete('/payable/clearance/{id}', [\App\Http\Controllers\Admin\Finance\Payable\Clearance::class, 'delete']);

    //应付 内地车辆管理
    Route::get('/payable/mainland-vehicle', [\App\Http\Controllers\Admin\Finance\Payable\MainlandVehicle::class, 'list']);
    Route::post('/payable/mainland-vehicle', [\App\Http\Controllers\Admin\Finance\Payable\MainlandVehicle::class, 'add']);
    Route::put('/payable/mainland-vehicle/{id}', [\App\Http\Controllers\Admin\Finance\Payable\MainlandVehicle::class, 'update']);
    Route::delete('/payable/mainland-vehicle/{id}', [\App\Http\Controllers\Admin\Finance\Payable\MainlandVehicle::class, 'delete']);
    Route::get('/payable/mainland-vehicle/{id}', [\App\Http\Controllers\Admin\Finance\Payable\MainlandVehicle::class, 'detail']);
    Route::put('/payable/mainland-vehicle/pay/{id}', [\App\Http\Controllers\Admin\Finance\Payable\MainlandVehicle::class, 'setPaid']);

    //应付 快件报关管理
    Route::get('/payable/express-customs', [\App\Http\Controllers\Admin\Finance\Payable\ExpressCustoms::class, 'list']);
    Route::post('/payable/express-customs', [\App\Http\Controllers\Admin\Finance\Payable\ExpressCustoms::class, 'add']);
    Route::put('/payable/express-customs/{id}', [\App\Http\Controllers\Admin\Finance\Payable\ExpressCustoms::class, 'update']);
    Route::delete('/payable/express-customs/{id}', [\App\Http\Controllers\Admin\Finance\Payable\ExpressCustoms::class, 'delete']);
    Route::get('/payable/express-customs/{id}', [\App\Http\Controllers\Admin\Finance\Payable\ExpressCustoms::class, 'detail']);
    Route::put('/payable/express-customs/pay/{id}', [\App\Http\Controllers\Admin\Finance\Payable\ExpressCustoms::class, 'setPaid']);

    //应付 机场操作成本管理
    Route::get('/payable/airport-operation', [\App\Http\Controllers\Admin\Finance\Payable\AirportOperation::class, 'list']);
    Route::post('/payable/airport-operation', [\App\Http\Controllers\Admin\Finance\Payable\AirportOperation::class, 'add']);
    Route::put('/payable/airport-operation/{id}', [\App\Http\Controllers\Admin\Finance\Payable\AirportOperation::class, 'update']);
    Route::delete('/payable/airport-operation/{id}', [\App\Http\Controllers\Admin\Finance\Payable\AirportOperation::class, 'delete']);
    Route::get('/payable/airport-operation/{id}', [\App\Http\Controllers\Admin\Finance\Payable\AirportOperation::class, 'detail']);
    Route::put('/payable/airport-operation/pay/{id}', [\App\Http\Controllers\Admin\Finance\Payable\AirportOperation::class, 'setPaid']);

    //应付 港车管理
    Route::get('/payable/hongkong-vehicle', [\App\Http\Controllers\Admin\Finance\Payable\HongKongVehicle::class, 'list']);
    Route::post('/payable/hongkong-vehicle', [\App\Http\Controllers\Admin\Finance\Payable\HongKongVehicle::class, 'add']);
    Route::put('/payable/hongkong-vehicle/{id}', [\App\Http\Controllers\Admin\Finance\Payable\HongKongVehicle::class, 'update']);
    Route::delete('/payable/hongkong-vehicle/{id}', [\App\Http\Controllers\Admin\Finance\Payable\HongKongVehicle::class, 'delete']);
    Route::get('/payable/hongkong-vehicle/{id}', [\App\Http\Controllers\Admin\Finance\Payable\HongKongVehicle::class, 'detail']);
    Route::put('/payable/hongkong-vehicle/pay/{id}', [\App\Http\Controllers\Admin\Finance\Payable\HongKongVehicle::class, 'setPaid']);

    //应付 打单管理
    Route::get('/payable/printing', [\App\Http\Controllers\Admin\Finance\Payable\Printing::class, 'list']);
    Route::post('/payable/printing', [\App\Http\Controllers\Admin\Finance\Payable\Printing::class, 'add']);
    Route::put('/payable/printing/{id}', [\App\Http\Controllers\Admin\Finance\Payable\Printing::class, 'update']);
    Route::delete('/payable/printing/{id}', [\App\Http\Controllers\Admin\Finance\Payable\Printing::class, 'delete']);
    Route::get('/payable/printing/{id}', [\App\Http\Controllers\Admin\Finance\Payable\Printing::class, 'detail']);
    Route::put('/payable/printing/pay/{id}', [\App\Http\Controllers\Admin\Finance\Payable\Printing::class, 'setPaid']);

    //应付 打板管理
    Route::get('/payable/printing-plate', [\App\Http\Controllers\Admin\Finance\Payable\PrintingPlate::class, 'list']);
    Route::post('/payable/printing-plate', [\App\Http\Controllers\Admin\Finance\Payable\PrintingPlate::class, 'add']);
    Route::put('/payable/printing-plate/{id}', [\App\Http\Controllers\Admin\Finance\Payable\PrintingPlate::class, 'update']);
    Route::delete('/payable/printing-plate/{id}', [\App\Http\Controllers\Admin\Finance\Payable\PrintingPlate::class, 'delete']);
    Route::get('/payable/printing-plate/{id}', [\App\Http\Controllers\Admin\Finance\Payable\PrintingPlate::class, 'detail']);
    Route::put('/payable/printing-plate/pay/{id}', [\App\Http\Controllers\Admin\Finance\Payable\PrintingPlate::class, 'setPaid']);

    //应付 提货送货登记费
    Route::get('/payable/delivery-registration', [\App\Http\Controllers\Admin\Finance\Payable\DeliveryRegistration::class, 'list']);
    Route::post('/payable/delivery-registration', [\App\Http\Controllers\Admin\Finance\Payable\DeliveryRegistration::class, 'add']);
    Route::put('/payable/delivery-registration/{id}', [\App\Http\Controllers\Admin\Finance\Payable\DeliveryRegistration::class, 'update']);
    Route::delete('/payable/delivery-registration/{id}', [\App\Http\Controllers\Admin\Finance\Payable\DeliveryRegistration::class, 'delete']);
    Route::get('/payable/delivery-registration/{id}', [\App\Http\Controllers\Admin\Finance\Payable\DeliveryRegistration::class, 'detail']);
    Route::put('/payable/delivery-registration/pay/{id}', [\App\Http\Controllers\Admin\Finance\Payable\DeliveryRegistration::class, 'setPaid']);

    //数据统计
    Route::get('/sctatis/data', [Data::class, 'list']);
    Route::get('/sctatis/pay', [Data::class, 'pay']);
    Route::get('/sctatis/rec', [Data::class, 'rec']);

    //应收提单数据统计
    Route::get('/receivable/take_order', [Receivable\TakeOrder::class, 'list']);

    Route::get('/receivable/take_order/detail', [Receivable\TakeOrder::class, 'detail']);
    Route::post('/receivable/take_order/detail', [Receivable\TakeOrder::class, 'detail_add']);
    Route::put('/receivable/take_order/detail/{id}', [Receivable\TakeOrder::class, 'detail_update']);
    Route::delete('/receivable/take_order/detail/{id}', [Receivable\TakeOrder::class, 'detail_delete']);

    Route::get('/receivable/detail', [Receivable\TakeOrderDetail::class, 'list']);
    Route::post('/receivable/detail/export', [Receivable\TakeOrderDetail::class, 'export']);


    //应付提单数据统计
    Route::get('/payable/take_order', [Payable\TakeOrder::class, 'list']);
    Route::get('/payable/take_order/detail', [Payable\TakeOrder::class, 'detail']);
    Route::get('/payable/take_order/detail2', [Payable\TakeOrder::class, 'detail2']);
    Route::post('/payable/take_order/template', [Payable\TakeOrder::class, 'template_import']);
    Route::post('/payable/take_order/detail_confirm', [Payable\TakeOrder::class, 'detail_confirm']);

    Route::get('/payable/detail', [Payable\TakeOrderDetail::class, 'list']);
    Route::post('/payable/detail/export', [Payable\TakeOrderDetail::class, 'export']);

    //应付模板
    Route::get('/payable/template', [Payable\Template::class, 'list']);
    Route::post('/payable/template', [Payable\Template::class, 'add']);
    Route::put('/payable/template/{id}', [Payable\Template::class, 'update']);
    Route::delete('/payable/template/{id}', [Payable\Template::class, 'delete']);


//=======财务=========

//=======仓库=========
    Route::post('/depot/storage', [Storage::class, 'add']);

    Route::get('/depot/boards', [Storage::class, 'boards']);
    Route::post('/depot/board', [Storage::class, 'load_board']);
    Route::get('/depot/board/history', [Storage::class, 'load_history']);
    Route::put('/depot/board/cancel/{id}', [Storage::class, 'cancel']);
    Route::get('/depot/board/takeorder', [Storage::class, 'get_order_sn']);
    Route::get('/depot/load_info', [Storage::class, 'load_info']);

//=======仓库=========

//=======PDA=========
    Route::post('/pda/login', [Index::class, 'pda_login']);
    Route::get('/load/record', [Storage::class, 'load_record']);

    Route::get('/storage/check', [\App\Http\Controllers\Admin\Pda\Storage::class, 'check']);
    Route::post('/storage/add', [\App\Http\Controllers\Admin\Pda\Storage::class, 'add']);

    Route::post('/big/select', [Customer::class, 'big_select']);

//=======PDA=========


    // Route::post('/lazada/asn', [\App\Http\Controllers\Admin\Lazada2::class, 'asn']);
    Route::post('/lazada/notify', [\App\Http\Controllers\Admin\Lazada::class, 'notify']);
    Route::post('/lazada/update', [\App\Http\Controllers\Admin\Lazada::class, 'update']);
    Route::get('/lazada/test', [\App\Http\Controllers\Admin\Lazada::class, 'test']);

    Route::post('/tm/asn', [\App\Http\Controllers\Admin\Tm::class, 'asn']);
    Route::post('/tm/notify', [\App\Http\Controllers\Admin\Tm::class, 'notify']);
    Route::post('/tm/update', [\App\Http\Controllers\Admin\Tm::class, 'update']);

    Route::post('/callback/status', [\App\Http\Controllers\Admin\CallBack::class, 'bigbag_status_callback_test']);
    Route::post('/callback/airline', [\App\Http\Controllers\Admin\CallBack::class, 'mawbho_airline_callback_test']);
    Route::post('/callback/exception', [\App\Http\Controllers\Admin\CallBack::class, 'common_exception_callback_test']);

    Route::post('/lazada/callback', [\App\Http\Controllers\Admin\CallBack::class, 'callback_test']);

    Route::post('/lazada/order', [\App\Http\Controllers\Admin\Lazada::class, 'order']);

    Route::post('/lazada/bigbag', [\App\Http\Controllers\Admin\Lazada::class, 'bigbag']);



//        Route::post('/lazada/order', [\App\Http\Controllers\Admin\Lazada::class, 'order'])
//            ->middleware('throttle:60,1'); // 每分钟最多 60 次请求
//
//        Route::post('/lazada/bigbag', [\App\Http\Controllers\Admin\Lazada::class, 'bigbag'])
//            ->middleware('throttle:30,1'); // 每分钟最多 30 次请求



    Route::get('/lazada/check', [\App\Http\Controllers\Admin\CallBack::class, 'check']);
    Route::get('/lazada/check_sign', [\App\Http\Controllers\Admin\Lazada::class, 'check_sign']);
    Route::post('/lazada/common_callback', [\App\Http\Controllers\Admin\CallBack::class, 'common_callback']);





